<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="javabean.Conn" %>
    <%@ page import="java.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>delete_deal</title>
</head>
<body>
<%
try{
	Connection conn=Conn.connect();
	String deletesql="delete from wuqiantong where name=?";
	PreparedStatement ps=conn.prepareStatement(deletesql);
	ps.setString(1,request.getParameter("name"));
	int row=ps.executeUpdate();
	if(row>0){
		out.print("Delete successfully!");
	}
	else{
		out.print("No information.");
	}
	ps.close();
	conn.close();
}
catch(Exception e){
	e.printStackTrace();
	out.print("Delete failed.");
}
 %>
 <a href="delete.jsp">back</a>
 <a href="adminMain.jsp">adminMain</a>
</body>
</html>